import request from '@/utils/request'

export function getTargetList(params) {
  return request({
    url: '/admin/target-type/list',
    method: 'GET',
    params
  })
}


// 修改
export function editTarget(data) {
  return request({
    url: `/admin/target-type/${data.targetId}`,
    method: 'PUT',
    data: data.params
  })
}